//
//  JHJLCell.m
//  NewPro
//
//  Created by RYX on 2019/4/24.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "JHJLCell.h"
#import "BackTotalModel.h"

@implementation JHJLCell

+ (instancetype)tempWithTableView:(UITableView *)tableView{
    
    JHJLCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CELL"];
    if (!cell) {
        
        ClassName
        cell = [[[NSBundle mainBundle] loadNibNamed:className owner:self options:nil] objectAtIndex:0];
    }
    
    return cell;
}

- (void)setModel:(BackTotalModel *)model{
    
    self.noLa.text = model.merchantNo;
    self.dateLa.text = model.transDate;
    
    CGFloat a = [model.backReward floatValue];
    if (a >= 0) {
        
        self.moneyLa.text = [NSString stringWithFormat:@"+%@",model.backReward];
    }else{
        
        self.moneyLa.text = [NSString stringWithFormat:@"%@",model.backReward];
    }
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
